<template>
  <CartMain ref="cartRef" />
</template>

<script>
import CartMain from './components/cart.vue'
export default {
  components: {
    CartMain,
  },
  onShow() {
    console.log('onShow')
    // this.$refs.cartRef.getCartList()
    uni.$emit('onShow') // 触发一个onSHow事件
    // 利用uni.$emit()来触发子组件的onShow
  },
}
</script>
